<div id="columns">
 <ul id="column2" class="column">
<# var inst; for(var prop in json ){ inst=json[prop]["instance"]; #>
 <li class="widget color-blue">  
 <div class="widget-head">
     <a id="<#=inst.id #>collapseA" class="collapse" href="#" onclick="toggleDashPanel('<#=inst.id #>')">COLLAPSE</a>
     <h3><#=inst.name #></h3>
<!--      <div style="position: absolute; right: 55px;"><h3 style="">Status</h3></div> -->
<!--      <div style="text-align:right"><img alt="" src="../media/js/img/bullet-green.png"></div> -->
 </div>
 
   <div class="widget-head-content">
   
      <table>
        <tr>
        	<td><strong>Host:</strong></td><td><#=inst.meta['3'] #></td>
        	<td><strong>Operating System:</strong></td><td><#=inst.meta['5'] #></td>
        	<td><strong>CPU:</strong></td><td><#=inst.meta['11'] #></td>
        	<td><strong>Java Version:</strong></td><td><#=inst.meta['10'] #></td>
        </tr>
           <tr>
        	<td><strong>Jboss Version:</strong></td><td><#=inst.meta['1'] #></td>
        	<td><strong>Jboss Start Date:</strong></td><td><#=inst.meta['2'] #></td>
        	<td><strong>Jboss Config:</strong></td><td><#=inst.meta['4'] #></td>
        </tr>
      </table>
        
   </div>
<div id="<#=inst.id #>contentD" class="widget-content"> 

<table>
<tr>

<td>
 <!-- column2 -->
 
 <div style="border: 0 none;font-size: 13px;font-weight: bold;padding-bottom: 5px;text-align: center;">Memory Usage</div>
 <div id="memoryUsage_<#=inst.id #>" style="width: 400px; height: 300px;" ></div>
 
 <div id="legend1_<#=inst.id #>">
		<table style="font-size: smaller; color: rgb(84, 84, 84);">
			<tbody><tr><td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="width: 4px; height: 0pt; border: 5px solid rgb(237,194,64); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Used Memory</td>
					</tr>
					
					<tr>
					<td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="width: 4px; height: 0pt; border: 5px solid rgb(175,216,248); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Total Memory</td>
				</tr>
				</tbody></table></div>
 
</td>


<td>
<!-- column1 -->

<div style="border: 0 none;font-size: 13px;font-weight: bold;padding-bottom: 5px;text-align: center;">Memory Detail</div>

<div id="placeholder_<#=inst.id #>" style="width: 400px; height: 300px;" ></div>

<div id="legend2333_<#=inst.id #>">
		<table style="font-size: smaller; color: rgb(84, 84, 84);margin-left:18px">
			<tbody>
				<tr>
				    <td><input id="codeCache_<#=inst.id #>" type="checkbox" class="" checked="checked" name="1"/></td>
					<td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="height: 0pt; border: 5px solid rgb(237, 194, 64); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Code Cache  <span id="0_<#=inst.id #>_val"></span></td>
				</tr>
				<tr>
				    <td><input id="codeCachem_<#=inst.id #>" type="checkbox" class="" checked="checked" name="2"/></td>
					<td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="height: 0pt; border: 5px solid rgb(77, 167, 77); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Code Cache Max <span id="1_<#=inst.id #>_val"></span></td>
				</tr>
				<tr>
				     <td><input id="edenSpace_<#=inst.id #>" type="checkbox" class="" checked="checked" name="3"/></td>
					<td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="height: 0pt; border: 5px solid rgb(203, 75, 75); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Eden Space <span id="2_<#=inst.id #>_val"></span></td>
				</tr>
				<tr>
				     <td><input id="edenSpacem_<#=inst.id #>" type="checkbox" class="" checked="checked" name="4"/></td>
					<td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="height: 0pt; border: 5px solid rgb(189, 155, 51); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Eden Space Max <span id="3_<#=inst.id #>_val"></span></td>
				</tr>
				<tr>
				     <td><input id="survivorSpace_<#=inst.id #>" type="checkbox" class="" checked="checked" name="5"/> </td>
					<td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="height: 0pt; border: 5px solid rgb(148, 64, 237); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Survivor Space <span id="4_<#=inst.id #>_val"></span></td>
				</tr>
				<tr>
				     <td><input id="survivorSpacem_<#=inst.id #>" type="checkbox" class="" checked="checked" name="6"/></td>
					<td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="height: 0pt; border: 5px solid rgb(162, 60, 60); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Survivor Space Max <span id="5_<#=inst.id #>_val"></span></td>
				</tr>
				<tr>
				    <td><input id="oldGenSpace_<#=inst.id #>" type="checkbox" class="" checked="checked" name="7"/></td>
					<td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="height: 0pt; border: 5px solid rgb(140, 172, 198); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Old Gen Space <span id="6_<#=inst.id #>_val"></span></td>
				</tr>
				<tr>
				     <td><input id="oldGenSpacem_<#=inst.id #>" type="checkbox" class="" checked="checked" name="8"/></td>
					<td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="height: 0pt; border: 5px solid rgb(118, 51, 189); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Old Gen Space Max <span id="7_<#=inst.id #>_val"></span></td>
				</tr>
				<tr>
				     <td><input id="permGenSpace_<#=inst.id #>" type="checkbox" class="" checked="checked" name="9"/></td>
					<td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="height: 0pt; border: 5px solid rgb(61, 133, 61); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Perm Gen Space <span id="8_<#=inst.id #>_val"></span></td>
				</tr>
				<tr>
				    <td><input id="permGenSpacem_<#=inst.id #>" type="checkbox" class="" checked="checked" name="10"/></td>
					<td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="height: 0pt; border: 5px solid rgb(175, 216, 248); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Perm Gen Space Max <span id="9_<#=inst.id #>_val"></span></td>
				</tr>
				
				<tr>
				<td colspan="3" style="border-bottom:0" >
				   <form><table><tr><td class="legendLabel" colspan="1"><input type="button" value="Clear Data" onclick="clearReportData(<#=inst.id #>);"/> </td> <td colspan="3" class="legendLabel"><input type="button" value="Export Data" onclick="location.href='export_reports?instanceId=<#=inst.id #>'");" /> </td></tr></table></form>
				 </td>
				</tr>
				
			</tbody>
		</table>
		</div>

</td>

<td>
 <!-- column3 --> 
 <div style="border: 0 none;font-size: 13px;font-weight: bold;padding-bottom: 5px;text-align: center;">CPU/Thread Utilization</div>
 
 <div id="cpuUsage_<#=inst.id #>" style="width: 400px; height: 300px;" ></div>
 
  <div id="legend3_<#=inst.id #>">
		<table style="font-size: smaller; color: rgb(84, 84, 84);">
			<tbody><tr><td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="width: 4px; height: 0pt; border: 5px solid rgb(237,194,64); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">CPU Time</td>
					</tr>
					
					<tr>
					<td class="legendColorBox">
					<div style="border: 1px solid rgb(204, 204, 204); padding: 1px;">
					<div
						style="width: 4px; height: 0pt; border: 5px solid rgb(175,216,248); overflow: hidden;"></div>
					</div>
					</td>
					<td class="legendLabel">Thread</td>
				</tr>
				</tbody></table></div>
				
 <div id="threads_<#=inst.id #>" style="height:300px;overflow-x:auto">
 		<table>
 		<tr>
 		 <th colspan="2" style="text-align:center">Latest Threads</th>
 		</tr>
 		<tr>
 		 <th>Name</th>
 		 <th>Cpu Time</th>
 		</tr>
       <# var leng;var threads=json[prop]["threads"]; if(threads.length>0){ var threadlist=threads.split("///");var threadList_last=threadlist[threadlist.length-1];if(threadList_last.indexOf("EMPTY")==-1){var threadList_last_arr=threadList_last.split('<>'); for(var ind=0;ind<threadList_last_arr.length-1;ind=ind+2){ #>	
 	   	<tr>
 			<# leng=threadList_last_arr[ind].length; if(leng>50){ #>    
 		    	<td title="<#=threadList_last_arr[ind] #>"><#=threadList_last_arr[ind].substring(0,50) #></td>
 		    <# } else {  #>
 		    <td><#=threadList_last_arr[ind] #></td>
 		    <# } #>
 		    <td><#=threadList_last_arr[ind+1] #></td>
 		</tr>
 	   <# } #>
 	   <# } #>
 	   <# } #>
 	   </table>
 </div>
</td>

</tr>
</table>

 </div>
 </li>
<# } #>

 </ul>
</div>